home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS03.ADF / Arrange / arrange.mrg < prev    next >
Text File  |  1986-04-02  |  18KB  |  657 lines

  1. .fi 0
  2. .ff 1
  3. .lm 5
  4. .pl 60
  5. .rm 75
  6. .h1 2
  7. .h2 2
  8. .f1 1
  9. .f2 2
  10. .he /ARRANGE(1.1)//ARRANGE(1.1)/
  11. .fo //Revised  6 December 1985/#/
  12. .ti -3
  13. NAME
  14. arrange
  15.  
  16. .ti -3
  17. SYNOPSIS
  18. 1> arrange [ >file | PRT: | PAR: ] [ filename ] [ filname ] ...
  19.  
  20. .ti -3
  21. DESCRIPTION
  22. .fi 1
  23. ARRANGE reads text from the standard input if no arguments are given,
  24. otherwise it reads from the specified files.
  25. Output is written to standard output.
  26.  
  27.  
  28. Input may consist of ordinary text, which is filled and justified by
  29. default, and arrangement commands.
  30. Arrangement commands consist of a period (.) in the first character
  31. position of a line, a two character code, and for most commands
  32. an optional argument.
  33. The commands recognized are:
  34.  
  35. .ti -3
  36. COMMANDS
  37.  
  38. .ti -1
  39.  .bd n
  40.  
  41. Change printing of characters characteristic.
  42. Either turn on (1) or turn off (0) BOLD printing of characters.
  43.  
  44. .ti -1
  45.  .bp n
  46.  
  47. Begin page numbered n.
  48. This forces the start of a new page with page number n.
  49. The default for n is the current page number plus 1.
  50.  
  51. .ti -1
  52.  .br
  53.  
  54. Cause a break.
  55. This forces any accumulated text not yet written to be written immediately.
  56. Several commands implicitly cause a break before they perform their function.
  57. These are: .bp, .ce, .fi, .ne, .ra, .si, .sp, and .ti.
  58.  
  59. .ti -1
  60.  .ce n
  61.  
  62. Center Text.
  63. The following lines of text will be centered until the center off command
  64. is received.
  65.  
  66. .ti -1
  67.  .ch n
  68.  
  69. Characters per inch.
  70. Change the number of characters printed per inch across the paper.
  71. Values are 10 and 12.
  72.  
  73. .ti -1
  74.  .cl start,width,l  start/width/c ...
  75.  
  76. Column.
  77. Define the parameters for columns in the Table command.
  78. The arguments are start of a column, the width of the column, and if the
  79. column is Left justified, Centered, or Right aligned.
  80. There are a maximum of 10 columns allowed.
  81. To define the columns themselves, see the Table-Begin command.
  82.  
  83. .ti -1
  84.  .cm text line
  85.  
  86. Comment Line.
  87. Include a line of text in the source as a comment line the line could
  88. be empty for use as a space in documentation.
  89. The line will not be passed to the arrange program.
  90.  
  91. .ti -1
  92.  .dc c
  93.  
  94. Delimiter Char.
  95. Changes the delimiter character for certain commands from whatever
  96. the current value to the new value of 'c' for char.
  97. Space, return, control chars not accepted.
  98. Default value is a '/'.
  99.  
  100. .ti -1
  101.  .dp n
  102.  
  103. Display Page Number.
  104. Toggles whether a page number is displayed in the header/footers.
  105. Can be turned on (1) or off(0).
  106.  
  107. .ti -1
  108.  .em n
  109.  
  110. Emphasize Text.
  111. Change the printing characteristics of text, emphasize the letters,
  112. either on (1) or off (0).
  113.  
  114. .ti -1
  115.  .ex n
  116.  
  117. Expand Characters.
  118. Change whether normal characters (0) or expanded characters (1).
  119. This changes the number of characters printed per line.
  120.  
  121. .ti -1
  122.  .ff n
  123.  
  124. Form Feed.
  125. Tell ARRANGE that the printer you are using sends accepts a
  126. formfeed to page up.
  127. Turn on (1) and turn off (0).
  128.  
  129. .ti -1
  130.  .fg text
  131.  
  132. Figure Title.
  133. The text associated with the line is placed just like a section
  134. identifier but the text is entered into a TABLE of FIGURES.
  135.  
  136. .ti -1
  137.  .fi n
  138.  
  139. Fill Text.
  140. Text will be filled (output lines will contain as many words
  141. as possible) and right justified (right margins will be lined up).
  142. ARRANGE fills by default.
  143. Turn Fill on and off just like other commands.
  144.  
  145. .ti -1
  146.  .fm n
  147.  
  148. Footer Margin.
  149. Number of spaces to indent left footer from left edge of the paper.
  150.  
  151. .ti -1
  152.  .fn text
  153.  
  154. Footnote.
  155. Text used as a footnote on the page.
  156. Only one line of up to 80 characters allowed.
  157. F1 must be at least 1 for the footnote to appear.
  158. If more than one footnote are on a specific page, the last one is
  159. printed.
  160.  
  161. .ti -1
  162.  .fo /left footer/center footer/right footer/
  163.  
  164. Set footer (bottom of page titles).
  165. The strings "left footer", "center footer", "right footer" will be
  166. written at the bottom of each page left justified, centered and right
  167. justified respectively.
  168. All occurrences of the character '#' in the strings will be replace
  169. with the current page number.
  170.  
  171. .ti -1
  172.  .f1 n
  173.  
  174. Footer Text Skip.
  175. Skip n blank lines between the last line of text and
  176. the line that will contain the footers.
  177.  
  178. .ti -1
  179.  .f2 n
  180.  
  181. Footer Skip.
  182. Use n to skip n-1 blank lines after the footer, where
  183. n must be => 1 for the footer to appear.
  184.  
  185. .ti -1
  186.  .fp n
  187.  
  188. Flip Header/Footer.
  189. This will cause the Left and Right Headers and
  190. Footers to alternate on succeeding pages.
  191.  
  192. .ti -1
  193.  .g1 n
  194.  
  195. Figure skip.
  196. The number of lines to skip between the figure and the figure title.
  197.  
  198. .ti -1
  199.  .g2 n
  200.  
  201. Figure text skip.
  202. The number of lines to skip between the figure text and the following
  203. lines of text.
  204.  
  205. .ti -1
  206.  .he /left header/center header/right header/
  207.  
  208. Set header (top of page titles).
  209. Operates the same way as the footer works.
  210.  
  211. .ti -1
  212.  .hm n
  213.  
  214. Header Margin.
  215. Number of spaces to indent left header from left edge of the paper.
  216.  
  217. .ti -1
  218.  .h1 n
  219.  
  220. Heading Skip.
  221. Use n to skip n-1 blank lines above the header, where n must
  222. be => 1 for the header to appear.
  223.  
  224. .ti -1
  225.  .h2 n
  226.  
  227. Heading Text Skip.
  228. The number of blank lines to skip between the header and the next line of text.
  229.  
  230. .ti -1
  231.  .lm n
  232.  
  233. Left Margin.
  234. The start of each line will originate from n, other
  235. commands may affect the indentation, eg. ti.
  236.  
  237. .ti -1
  238.  .it n
  239.  
  240. Italics Characters.
  241. Changes whether the characters are printed as normal
  242. ascii characters (0) or in Italics (1).
  243.  
  244. .ti -1
  245.  .ju n
  246.  
  247. Justify Text.
  248. Decides whether text is justified along the right margin
  249. and gives a presentable view or is left ragged.
  250.  
  251. .ti -1
  252.  .ls n
  253.  
  254. Set line spacing.
  255. N-1 blank lines will be inserted between each line of text.
  256.  
  257. .ti -1
  258.  .mb name
  259.  
  260. Macro Begin.
  261. Denotes the starting of a macro definition that will have the name
  262. called 'name'.
  263.  
  264. .ti -1
  265.  .me
  266.  
  267. Macro End.
  268. Denotes the ending of a macro definition.
  269.  
  270. .ti -1
  271.  .ne n
  272.  
  273. Need n lines.
  274. If there are fewer than n lines remaining on the current
  275. page, then skip to a new page.
  276.  
  277. .ti -1
  278.  .nx "Major"Minor"
  279.  
  280. Index Listing.
  281. Allows the user to specify an index for the document.
  282. The index can be broken up into two catagories, a Major
  283. heading and a minor heading.
  284. The index is not printed till the end of the document.
  285. The index will be printed in single column mode.
  286. Currently this option is not functional.
  287.  
  288. .ti -1
  289.  .pa
  290.  
  291. Paragraph Start.
  292. Accept the next line of text input as a paragraph start and space
  293. 'ps' lines and indent from margin 'pi' spaces.
  294.  
  295. .ti -1
  296.  .pi n
  297.  
  298. Paragraph Indent.
  299. Number of spaces to indent the paragraph from the left margin of the paper.
  300.  
  301. .ti -1
  302.  .pl n
  303.  
  304. Page Length.
  305. Define the number of lines that are on a page including
  306. the headers and footers.
  307.  
  308. .ti -1
  309.  .ps n
  310.  
  311. Paragraph Spacing.
  312. Number of lines to skip between the preceeding text
  313. and the start of the current paragraph.
  314.  
  315. .ti -1
  316.  .pt text
  317.  
  318. Page Text.
  319. Text to be placed in front of a page number in either the header or
  320. footer.
  321. Defaults to Page.
  322.  
  323. .ti -1
  324.  .ra n
  325.  
  326. Right Alignment.
  327. Align the next n lines of the input file on the right margin.
  328.  
  329. .ti -1
  330.  .rm n
  331.  
  332. Set right margin (the rightmost character position to be written to).
  333.  
  334. .ti -1
  335.  .ro n
  336.  
  337. Change page number printing from to roman (1) or to arabic (0).
  338.  
  339. .ti -1
  340.  .sb n
  341.  
  342. Subscript characters.
  343. Turns on (1) the Subscripting of characters until the turn
  344. off (0) signal is received.
  345.  
  346. .ti -1
  347.  .sh text
  348.  
  349. Section Header.
  350. Display a section header for the following
  351. text and place it into the table of contents.
  352. One note, in the table of contents, no page number will 
  353. appear for the Header. (Not functional yet)
  354.  
  355. .ti -1
  356.  .si text
  357.  
  358. Section Identifier.
  359. Display a section identifier for the following
  360. text and place it into the table of contents.
  361.  
  362. .ti -1
  363.  .sm n
  364.  
  365. Section Margin.
  366. Indent the section identifier n spaces from the
  367. margin specified by .lm.
  368.  
  369. .ti -1
  370.  .sp n
  371.  
  372. Space.
  373. Write n blank lines.
  374.  
  375. .ti -1
  376.  .ss n
  377.  
  378. Section Skip.
  379. Skip n blank lines between the preceeding text
  380. and the section identifer.
  381.  
  382. .ti -1
  383.  .st n
  384.  
  385. Section Text Skip.
  386. Skip n blank lines between the section identifier and
  387. the next line of text.
  388.  
  389. .ti -1
  390.  .su n
  391.  
  392. Superscript characters.
  393. Turns on (1) the Superscripting of characters
  394. until the turn off (0) signal is received.
  395.  
  396. .ti -1
  397.  .tb
  398.  
  399. Table Begin.
  400. Starts the beginning of tables.
  401. The table begins on the next line and uses the following format:
  402. /column1/column2/column3/.../column10/.
  403. There are a maximum of 10 columns with the start, width and justification
  404. specified in the Column command.
  405.  
  406. .ti -1
  407.  .te
  408.  
  409. Table End.
  410. Denotes the end of a Table.
  411.  
  412. .ti -1
  413.  .tf n
  414.  
  415. Print Table of Contents.
  416. Toggles on (1) or off (0) whether the Table of Contents will be
  417. printed if it exists.
  418.  
  419. .ti -1
  420.  .ti n
  421.  
  422. Temporary indent.
  423. The next output line (and only that line) will be given
  424. an indentation of lm+n rather than the value set by .lm.
  425.  
  426. .ti -1
  427.  .un n
  428.  
  429. Underline Characters.
  430. Switches Underline Mode.
  431. Turns on (1) and turns off (0) the underlining of characters.
  432.  
  433.  
  434. .ti -1
  435.  .macro  /arg 1/arg 2/arg 3/ arg4/ arg5/
  436.  
  437. Macro Call.
  438. Calls the macro named 'macro' passing it the arguments delimited
  439. by the delimiting character '/' (default).
  440. Up to five (5) arguments may be passed.
  441. The macro can be called as many times as needed.
  442. No nesting of Macros allowed yet.
  443. .bp
  444.  
  445. Numeric arguments may be specified in two ways: as absolute (unsigned)
  446. integers, or as signed integers.
  447. Absolute arguments are assigned to parameters in the obvious way:
  448.  
  449.   .ls 2
  450.  
  451. sets the line spacing to 2.
  452.  
  453. Signed arguments indicate a change in the current value of the
  454. parameter being set;  the value of the argument is added to
  455. or subtracted from the current value.
  456. For example, the commands:
  457.  
  458.   .pl 66
  459.   .pl -10
  460.  
  461. will set the page length to 56, and
  462.  
  463.   .lm 10
  464.   .lm +5
  465.  
  466. will cause a temporary indent of 15.
  467.  
  468. Blank lines and lines starting with spaces occuring in the input are
  469. special cases.
  470. Blank lines cause a break and a number of blank lines equal to the
  471. current line spacing to be written.
  472. Lines starting with spaces cause a break and a temporary indent of +n,
  473. where n is the number of spaces before the first non-space character
  474. on the line.
  475. .bp
  476. .fi 0
  477. .ce 1
  478. SUMMARY OF COMMANDS
  479. .ce 0
  480. .br
  481. .lm 9
  482. .dc ~
  483. .cl 2,16,l  23,18,l 40,7,c 52,5,r 60,5,r
  484. .tb
  485. ~Command Name~Form~Default~Min~Max~
  486. ~~
  487. ~Bold Char~.bd n~off~0~1~
  488. ~Begin Page~.bp n~1~-1000~1000~
  489. ~Break line~.br~none~
  490. ~Center Line~.ce n~off~0~1~
  491. ~Char per inch~.ch n~10~10~12~
  492. ~Column~.cl s,w,l s,w,r~
  493. ~Comment text~.cm text~none~
  494. ~Display Page~.dp n~on~0~1~
  495. ~Emphasize~.em n~off~0~1~
  496. ~Expand Text~.ex n~off~0~1~
  497. ~Formfeed~.ff~on~0~1~
  498. ~Figure~.fg text~
  499. ~Fill Text~.fi~on~0~1~
  500. ~Footer Margin~.fm n~5~0~30~
  501. ~Footnote~.fn text~
  502. ~Footers~.fo /lf/cn/rt/~off~
  503. ~Skip B/Footer~.f1 n~3~0~20~
  504. ~Skip A/Footer~.f2 n~3~0~20~
  505. ~Flip Head/Foot~.fp n~off~0~1~
  506. ~Figure skip~.g1 n~1~0~10~
  507. ~Figure text skip~.g2 n~2~0~10~
  508. ~Headers~.he /lf/cn/rt/~off~
  509. ~Header margin~.hm n~5~0~30~
  510. ~Skip B/Header~.h1 n~3~0~20~
  511. ~Skip A/Header~.h2 n~3~0~20~
  512. ~Left Margin~.lm n~5~0~1~
  513. ~Italic Print~.it n~off~0~1~
  514. ~Index~.nx "Major"Minor"~
  515. ~Justify Text~.ju n~on~0~1~
  516. ~Line Spacing~.ls n~1~0~3~
  517. ~Macro Begin~.mb name~
  518. ~Macro End~
  519. ~Need Lines~.ne n~0~0~66~
  520. ~Paragraph~.pa~none~
  521. ~Para Indent~.pi n~5~0~20~
  522. ~Page Length~.pl n~66~10~88~
  523. ~Para Spacing~.ps n~1~0~10~
  524. ~Page Text~.pt text~Page~
  525. ~Right Align~.ra n~off~0~1~
  526. ~Right Margin~.rm n~70~0~132~
  527. ~Roman Page~.ro n~off~0~1~
  528. ~Subscripts~.sb n~off~0~1~
  529. ~Section Header~.sh text~off~
  530. ~Section Id~.si text~off~
  531. ~Section Margin~.sm n~5~0~30~
  532. ~Section Skip~.ss n~2~0~5~
  533. ~Space Lines~.sp n~0~0~30~
  534. ~Sect Text Skip~.st n~2~0~5~
  535. ~Superscripts~.su n~off~0~1~
  536. ~TOC Print~.tf n~on~0~1~
  537. ~Table Begin~.tb~
  538. ~Table End~.te~
  539. ~Temp indent~.ti n~0~-99~99~
  540. ~Underline~.un n~off~0~1~
  541. ~macro~.macro /1/2/3/4/5~
  542. .te
  543. .dc /
  544. .h2 -1
  545. .bp
  546. .ce 1
  547. Conceptual View of ARRANGED Page
  548. .ce 0
  549.  
  550. .lm 4
  551. .rm 80
  552.                 V      Top Edge of paper       V
  553.    ________________________________________________________________
  554.    |  ^                                                           |  ^
  555.    |  |   TOP MARGIN,  H1                                         |  .
  556. L  |  |                                                           |  .
  557. E  |  VLEFT                     CENTER                   RIGHT    |  .
  558. F  |  ^                                                           |
  559. T  |  |  MARGIN BELOW THE HEADER,  H2                             |  L
  560.    |  V                                                           |  I
  561. E  |  User defined text starts here and continues down to the     |  N
  562. D  |  footer on the bottom of the page.                           |  E
  563. G  |                                                              |  S
  564. E  |                                                              |
  565.    | |------  Indentation from left edge,  LM                     |  p
  566. o  |<->|         Considered the LEFT MARGIN                       |  e
  567. f  |   |                                                          |  r
  568.    |   |User text is indented the specified number of spaces      |
  569. P  |   |from the edge of the paper.                               |  P
  570. A  |   |                                                          |  A
  571. G  |<------------------ RIGHT MARGIN from left edge, RM ---->|    |  G
  572. E  |   |                                                     |    |  E
  573.    |   |User text will be FILLED out to the right margin when|    |
  574.    |   |ever it is generated, except  in the  case of  having|    |  PL
  575.    |   |fill off.                                            |    |
  576.    |   |                           This is RIGHT ALIGNED text|    |  .
  577.    |   |                                                     |    |  .
  578.    |   |This is NON FILLED text that is input                |    |  .
  579.    |   |                                                     |    |  .
  580.    |   |                                                     |    |  .
  581.    |   |                                                     |    |  .
  582.    |   |                                                     |    |  .
  583.    |   |          This is text CENTERED on the line          |    |  .
  584.    |   |                                                     |    |  .
  585.    |   |The  usable  printing space of a page is specified by|    |  .
  586.    |   |the user:  usable width = rm - in                    |    |  .
  587.    |   |           usable length = pl - h1 - h2 - f1 - f2    |    |  .
  588.    |   |                                                     |    |  .
  589.    |   |You change where the left margin is by using the     |    |  .
  590.    |     |temporary indent (ti) to affect the next line      |    |  .
  591.    |   |                                                     |    |  .
  592.    |   |                                                     |    |  .
  593.    |   | This is the last line of user defined text.         |    |  .
  594.    |  ^                                                           |  .
  595.    |  |  MARGIN BEFORE THE FOOTER, F1                             |  .
  596.    |  |                                                           |  .
  597.    |  V  <FOOTNOTE goes here>                                     |  .
  598.    |  ^LEFT                    CENTER                   RIGHT     |  .
  599.    |  |                                                           |  .
  600.    |  |  BOTTOM MARGIN,  F2                                       |  .
  601.    |__V___________________________________________________________|  V
  602. .rm 70
  603. .bp
  604. .ce 1
  605. Conceptual View of ARRANGED Page
  606. .ce 0
  607.  
  608. .lm 4
  609. .rm 79
  610.                 V      Top Edge of paper       V
  611.    ________________________________________________________________
  612.    |                                                              |
  613.    |                                                              |
  614. L  |                                                              |
  615. E  |   LEFT                     CENTER                   RIGHT    |
  616. F  |                                                              |
  617. T  |                                                              |
  618.    |                           his is text that is not-filled|    |
  619. E  |                       and aligned along the right margin|    |
  620. D  |                            by the RA command on and off.|    |
  621. G  |                                                         |    |
  622. E  |                                                         |    |
  623.    |                                                         |    |
  624. o  |                                                         |    |
  625. f  |                                                         |    |
  626.    |   |          ^                                          |    |
  627. P  |   |          |  Section Skip, SS                        |    |
  628. A  |   |          V                                          |    |
  629. G  |   |    Section IDENTIFIER indented by SM,               |    |
  630. E  |   |          ^                                          |    |
  631.    |   |          |  Section Text Skip, ST                   |    |
  632.    |   |          V                                          |    |
  633.    |   |        This is some text between a section          |    |
  634.    |   |        identifier and a figure marker.              |    |
  635.    |   |          ^                                          |    |
  636.    |   |          |  Figure  Skip, G1                        |    |
  637.    |   |          V                                          |    |
  638.    |   |    FIGURE  Title of figure, indented by SM,         |    |
  639.    |   |          ^                                          |    |
  640.    |   |          |  Figure Text Skip, G2                    |    |
  641.    |   |          V                                          |    |
  642.    |   |     this is some more text that appears after the   |    |
  643.    |   |     figure .                                        |    |
  644.    |   |                                                     |    |
  645.    |   |                                                     |    |
  646.    |   |                                                     |    |
  647.    |   |                                                     |    |
  648.    |   | This is the last line of user defined text.         |    |
  649.    |                                                              |
  650.    |                                                              |
  651.    |                                                              |
  652.    |   LEFT                    CENTER                   RIGHT     |
  653.    |                                                              |
  654.    |                                                              |
  655.    |______________________________________________________________|
  656. .rm 70
  657.